#!/bin/sh
# for i in 3 5 7 9 11 
# do
#     mpirun -np ${i} ./a.out >> res1.data
#     wait
# done

for thread_num in 2 4 6 8 10 20 
do
    mpirun -np 2 ./a.out ${thread_num} >> pi.data
    wait
done

echo Done
